package com.sy.mapper;

import com.sy.dto.EquipStateDto;
import com.sy.dto.EquipmentDto;
import com.sy.entity.Equipment;
import com.sy.vo.EquipmentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description: EquipmentMapper.xml <br>
 * date: 2022/6/24 1:39 AM <br>
 * author: zoumaoji <br>
 * version: 1.0 <br>
 */
public interface EquipmentMapper {
List<Equipment> showAllEquipments();
int changeState(@Param("stateId") Integer stateId, @Param("id") Integer id);
Integer addEquipment(EquipmentVo equipmentVo);
Equipment selectEquipmentById(Integer id);
int delEquipment(Integer id);
List<EquipStateDto> showEquipState();
List<Equipment> selectAllEquipsByName(EquipmentVo equipmentVo);
}
